package com.gitee.srurl.system.exception;

import com.gitee.srurl.core.enums.ResponseCodeEnums;
import com.gitee.srurl.core.exception.ServiceException;

import java.io.Serial;

/**
 * @author zxw
 * @date 2023/4/29 11:26
 */
public class ShortUrlGenerateException extends ServiceException {

    @Serial
    private static final long serialVersionUID = 2641618518107623655L;

    public ShortUrlGenerateException() {

        super(ResponseCodeEnums.SHORT_URL_GENERATE_FAIL);
    }

    public ShortUrlGenerateException(ResponseCodeEnums responseCodeEnums) {

        super(responseCodeEnums);
    }

    public ShortUrlGenerateException(String message) {

        super(message, ResponseCodeEnums.SHORT_URL_GENERATE_FAIL.code());
    }
}
